package com.bgy.geek.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bgy.geek.dao.TbUserDao;
import com.bgy.geek.entity.TbUser;
import com.bgy.geek.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 人员表(TbUser)表服务实现类
 *
 * @author makejava
 * @since 2021-10-21 21:54:22
 */
@Service("tbUserService")
public class TbUserServiceImpl extends ServiceImpl<TbUserDao, TbUser> implements TbUserService {

	@Resource
	private TbUserDao userDao;
	@Override
	public List<TbUser> findUserListByBip(String bip) {
		return userDao.findUserListByBip(bip);
	}

	@Override
	public TbUser findUserByBip(String bip) {
		return userDao.selectOne(new QueryWrapper<TbUser>().lambda().eq(TbUser::getBip,bip));
	}
}
